package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface CommentService {
    // 保存comment
    Integer saveComment(Comment comment);

    // 删除comment
    Integer removeComment(Long userId, ObjectId publishId, Integer commentType);

    //分页查询评论列表
    PageBeanVo findCommentByPage(ObjectId publishId,Integer pageNum,Integer pageSize);

    //查看点赞,喜欢,评论列表数据
    PageBeanVo findByPage(Long userId,Integer pageNum,Integer pageSize,Integer commentType);
}
